Properly decode strings in REPLACES and ignore leading whitespace