java como cortar um dtring e aparar ao mesmo tempo

String result[] = attributes.trim().split("\\s*,\\s*");
Panicky Puma