Update string_state.c

performance increase?