Fix the string representation bug; remove debug prints.