string functions to methods