Added new methods and tests for the string module.