fixed string.substring()