This series of 3 search and replaces is a bit ugly.