Misc minor string optimisations.