strip out all newlines
then before each [ add a newline
u dont do it to the file, u do it to the variable you loaded ur file into...
does anyone know how to validate line 2 & 3 so I stop getting notices? http://pastie.org/
if line 2 or 3 is non object then or something