split a string `a` with new line character,a.split('\n')[:-1]