public Span trim(CharSequence src){
  if (start < end)   while (src.charAt(end - 1) == 32) {
    end--;
    if (start == end)     break;
  }
  if (start < end)   while (src.charAt(start) == 32) {
    start++;
    if (start == end)     break;
  }
  return this;
}

public Span trim ( CharSequence src ) { if ( start < end ) while ( src . charAt ( end - 1 ) == 32 ) { end -- ; if ( start == end ) break ; } if ( start < end ) while ( src . charAt ( start ) == 32 ) { start ++ ; if ( start == end ) break ; } return this ; }
returns the span , with leading and trailing whitespaces omitted .
