Fix regexp escaping error by switching regexpt to literal
Fix generated ids when parent has no input
Only strip if necessary
Merge pull request #266 from kirel/fix-parent-has-no-input

Fix id generation if parent has no input