better parsing for erlang console for empty input