add check to ensure hyphen deletion