A bit of string hacking.