Removed debug to STDOUT
Fixed the regexp syntax