You can probably do it easier using Regex, but given that the code works and looks good, I don't see any issues using the code you have.

It would pretty much replace all the setting you're doing, but I doubt it would be noticeably faster.


Yar