added some methods in string module