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

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