Implemented function as part of string class.
Used gsub, regex, and str.capitalize