change deprecated string functions