update KeyValueStringToArray to accept empty string as a value