Could do this as

    switch (align) {
    case "left":
    case "right":
    case "center":
        align = newAlign;
        break;
    default:
        throw ...
    }

But it's not really a big deal either way.