add slash to the end of an state