fixed string.substring attributes