trim leading and trailing dashes in heroku app names