update regex and fix bindingStr assignment