Document String functions and make them a little more solid.