fix end of string