add '\0' character to mark word's end