Fix edge cases with # and = characters.
Separate out arrays to process recursively