forgot that String.replace is only available in gecko :/