Changing commaSeparated to return CharSequence.
Adding tmp variable to avoid multiple array lookups.