improve gotoLine(): escape char, use search()