getShortString function
Implementation
String getShortString(String value) {
String x = "";
var list = value.split(" ");
if (list.length == 1) if (value.length == 1)
x = value.toUpperCase();
else
x = list[0][0] + list[0][1];
else
x = list[0][0] + list[1][0];
return x.toUpperCase();
}