This is a script related question, using bash with awk and/or sed with text recognition. So it might be off topic here. 

I have a text document that has a load of text which has spaces between every letter!

Example:

T h e b o o k a l s o h a s a n a n a l y t i c a l p u r p o s e w h i c h i s m o r e i m p o r t a n t

Is there a way that I can get awk/sed to delete the spaces? I appreciate that this is probably a much more complex problem to solve with just a simple bash script as there needs to be some sort of text recognition also. 

Grateful for any ideas as to how to approach this problem. Unfortunately this text document is massive and would take a very long time to manually go through it.