Refactored toString.