comefrom: <awangdev>58. Length of Last Word_1.java
code: public int lengthOfLastWord(String s) {
          if (s == null || s.length() == 0) {
              return 0;
          }
          s = s.trim();
          for (int i = s.length() - 1; i >= 0; i--) {
              if (s.charAt(i) == ' ') {
                  return s.length() - i - 1;
              }
          }
  
          return s.length();
      }
masked: public int sample_funcname ( String var_1 ) {
    if ( var_1 == null || var_1 . length ( ) == 0 ) {
      return 0 ;
    }
    var_1 = var_1 . trim ( ) ;
    for ( int var_7 = var_1 . length ( ) - 1 ;
    var_7 >= 0 ;
    var_7 -- ) {
      if ( var_1 . charAt ( var_7 ) == ' ' ) {
        return var_1 . length ( ) - var_7 - 1 ;
      }
    }
    return var_1 . length ( ) ;
  }
  