update word spacing
fix word spacing logic