I am trying to figure out the best code to put a space between a prefix and a first name, if a prefix exists, and no space if a prefix does not exist.

My variables look like: @prefix@@firstname@@lastname@

If I put a space between @prefix@ and @firstname@ the address lines without a prefix look like they are indented, which the customer does not want.

I have tried using an IF expression to add a blank space but I can't get it to work right... any better ideas or suggestions?