remove leading space before then and else