Add helper functions for converting string arrays into different