Change KeyArray type to STL string
KeyList: Optimise concatenation of the string with key list