Optional arguments for string methods.

Add the optional arguments for the string methods that have been implemented.