Set up function to determine if a string follows a pattern like an email address.
Trying to set up function to title case a string.