handle unmatched bind elements that are not groups
updated regex to pick only one space after xpath