Add methods for string representation