properly remove hyphen from start and end of alias