filter left arrow and fix a new line related bug