Remove sequence separator at the end of the slug
Added a unit test for slug with ending sequence separator