In my VB class.. we were told to make a qbasic program, and im completely lost..

The project is to create a program that uses the FUCNTION statement to remove all spaces ina string.. how can i do this?