improved some string method.