This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Space s are not different from any other character when it comes to strings and how databases store them. You don't need to to do anything special. if the spaces are being removed, then there is something in the code that doing it. You'll need to track down and find it.