replace the uses of old string functions that Reimar missed