Refactored gsub sentence exceptions