<awangdev>Group Shifted Strings_1.java
private String convert(String s) {

        StringBuffer sb = new StringBuffer();
        int offset = s.charAt(0) - 'a';
        for (char c : s.toCharArray()) {
            char newChar = (char)(c - offset);
            if (newChar < 'a') newChar += 26;
            sb.append(newChar);
        }
        return sb.toString();
    }
private String var_0 ( String var_2 ) {
  StringBuffer var_4 = new StringBuffer ( ) ;
  int var_8 = var_2 . charAt ( 0 ) - 'a' ;
  for ( char var_10 : var_2 . toCharArray ( ) ) {
    char var_11 = ( char ) ( var_10 - var_8 ) ;
    if ( var_11 < 'a' ) var_11 += 26 ;
    var_4 . append ( var_11 ) ;
  }
  return var_4 . toString ( ) ;
}
