add space before id in re pattern