added cleaning up the input string