and write '\0' after each word over separator symbol