add auto detection of word spacing