Fixed first letter replacement

check to see if the line contains text