Improved String unit tests

- Better testing for errors thrown
- Added white space for better code readability