Remove tricky code

Don't use "if" in expression expansion in string.