swapi: only shorten keys if threre are multiple keys and '-' or '_' in all keys
swapi: shorten longer line