Fix for white space matching in position regex