This method easily capitalises the first letter of a string, nice and easy to use, and to understand.
This will trim a string to the nearest word boundary. If you plug in the string “Have a nice day” with a length of 10 you will get back “Have a”. Useful where you need to trim to the nearest word!
And thats it
Just a quick post this one, I hope its been useful to someone. Feel free to comment if you have any changes that you think should be made.
This post has been viewed 1245 times.