Modify array_hash to remove spacing issues.