fixed store_word sometimes fails to store string if it starts with whitespace