Updated with preg_replace to check for punctuation
Changed test