Added error message if character not found