deletes whitespace and downcases all letters to check if sentence or word is palindrome