Added pattern matching, regex improvement, optimizations, etc

Added pattern matching (trailing nums, common words)