added source code for ExtractAbbrev