you can reverse manually (iterate the string from the end back to the beginning) or use something existing like StringBuffer / StringBuilder.
you can
test each character manually while iterating backwards, or use a class (on the line above) that allows you to replace specific characters with something else, including nothing.