Add toString method on both Selection and Range objects