Fix replacements for macro variables with spaces

"\var1" is sometines replaced with "\ rx" instead of "\rx"