Not sure why I suddenly started using deprecated string functions.