refactored StrArray struct to use more convenient names