Refactored regex to remove compound words

Removed the part of the regular expression that accepted compound words
as per instruction.