fixed string ending to early