sanitize transition strings a bit more