Cleanup before adding submit template; escape "*" in regex