Generalise writing of CharSequences