implement string processing methods