problem with end of string with windows corrected