trim enter list JS