problem1 string length boundary corrected