Fix sexp head or tail spaces bug

Fix runtime error when sexp has head or tails spaces.
Refactoring

Change method name.
Add debug message

Output debug message if DEBUG variable set true.
Implement letrec

letrec enables recursion call.