The requirements seem a bit more complicated. In the output, only the 'a' value is different between the two columns. The string which does not fit that pattern is skipped.
UPDATE: My description of the output is wrong! I cannot figure out t
+he
real requirement.