Make it work.

Fix syntax errors, add backslash to the non-alpha characters and fix
error in logic.

Remove unneeded code.

dang