Refactoring of toString() method in Track class