title case

added function to split a string into individual arrays