This is somewhat hard to read. Given that the condition changes the whole string, an actual if statement would be more appropriate.