added to_heading method for String