Why don't you want to print out the input string which caused the issue?