fixed cutDownString() substring bounds