correct subsstring