Read from a file and use the strings in a loop

Hello all,
I need some help to create a script which contain a few strings on every line, and use those strings in a loop to fire some commands.
for exmaple the file looks like
tom
dave
bill
andy
paul

I want to read one line at a time and use it in loop like
command tom
command dave
......
......
and ignore the last line which will always be empty.

Thanks for your help.

#! /usr/bin/ksh

exec < file.with.strings
while read string1 ; do
      if [[ $string1 != "" ]] ; then
               command $string1
      fi
done
exit 0

To read 2 strings per line it would be
while read string1 string2 ; do

Thank you Perderabo
Worked very well.

You can type this right on the command line too. Now script needed.

for i in $(cat file)
do
command $i
done

-X