This looked good in CoffeeScript but because there was a return value outside the `if`, it never returned. `String#replace` doesn't modify the string.