Meh, I don't mind the bitwise operators. It's plenty clear given the surrounding context. The bitwise implementation is also very natural for an algorithm that quickly repeats a string by doubling it.