I have a set of data and the input can be inconsistent with upper and lower case. I would like to set the first letter of each word to be a capital, but without changing the words that are in ALLCAPS (which Titlecase changes). The strings are of variable length and number of words, and the ALLCAPS words also vary.
e.g
| Now | Becomes ... |
| Red apple | Red Apple |
| red Apple | Red Apple |
| Red Apple | Red Apple |
| yellow Spotty ball | Yellow Spotty Ball |
| Yellow spotty ball | Yellow Spotty Ball |
| Blue DOG | Blue DOG |
| blue DOG | Blue DOG |
Any help would be much appreciated!