sanitize the input string by making it lowercases and remove any whitespaces