Wrote tests and refactored a string.