Updated readPhrases to check for punct marks

also changed toLowercase() for hasWord() arguments