formatting trimmed bet array.