Code optimization

- Overwritten default to_s method and used "swapcase" method.