replace newline character before word tokenization