string functions updated