fix parsing placeholders with a space