fixed string problem at the end