Calculating columns size after replacing prefix