simplifying string arrays