Fixed a string function.
Oops forgot the license and header.