java, как прорезать Dtring и подрезать одновременно

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