Example that capitalizes a string
using an optional argument
This example takes in a string and returns
that string with the first letters in each word capitalized if the Optional
Boolean argument is True. If the Boolean argument is False or omitted, it
returns the string in all capital letters.