Arduino and HC-05 Communication Issue

The serial input basics tutorial may be of interest. It shows robust ways to accomplish serial communications.

38400 is on the edge for reliable communication with SoftwareSerial.