how can i reformat this rtf (keeping the original formatting), so the resulting formatted text will be (either):

toUpper
toLower
sentence case
proper case
toggle case - toggle upper + lower case

heres the rtf:

Code:
{\rtf1\ansi\ansicpg1252\deff0\deflang2057{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}{\f1\fnil\fcharset0 Comic Sans MS;}}

{\colortbl ;\red255\green0\blue0;\red0\green0\blue255;}

\viewkind4\uc1\pard\qj\f0\fs17 here's a few \b sen\cf1 ten\cf0 ces\b0  of text to test the \b\i capabilities \b0\i0 of my new code. \cf2 hopefully\cf0  the enhancements \f1\fs30 i've made will work\f0\fs17  as intended. this first test is a test of the textalign\b\i  \ul\b0\i0 justify\ulnone  feature, which (after testing) works as intended.\par

}