Replaces if else clauses that were used to wrap strings with wrapWhen.