Null safety on string functions