Avoid to raise parse error when empty or only whitespaces input in REPL
Refactoring