first groups all white space $1 second groups all first letter of every word except capitals third groups remaining letters