switch index of chars and uppercase