remove extra char in state's printing