Fixed edge case when slug both begins and ends with a -