Added static to deep_trim() function