Do you use gets ?

If yes, it should work perfectly, never had any problems with it ...

Can you show us a snippet of your code ?
_________________________