nathanas:
But when I remove all the strstr commands the sketch has 1996 bytes of free sram.
I intentionally ran mine out of SRAM allocating large arrays and initializing the first member. When it runs out of memory, as I suspected it might, it shows wild amounts of free SRAM. I have 8K, and it did fine until the memory finally ran out. When it ran it out, it showed "SRAM free: 11753". I don't have that much!