by Dan Marsden.
few different options - one would be putting them in an array like this:
$strings = array();
$strings['colour'] = 'color';
$strings['centre'] = 'center';
foreach ($strings as $string1 => $string2) {
$text = str_replace($string1, $string2, $text);
}
Or you could be "clever" and read the lang/en_us/moodle.php file to load in all your US strings and the lang/en/moodle.php to load in the "proper" strings and then replace all of them.
Of course - because all your text is being parsed by filters this may affect the performance of your server so it's probably worth doing some testing to see how well it performs.