Shortens hyphenated border code