Assuming at least EL 2.2 and that the names are non-null Strings you could have an expression of the form:
#{condition ? str0 : str1.concat(str2)}
For an older version (or null Strings) you could use:
#{condition ? str0 : str1}#{condition ? str0 : str2}