Return Key

Is it possible to enter data into a read command and automatically enter, for instance

read name
echo "Andy" /r

could this work cos it doesn't seem to be working for me!

something like this,

>read name
hi\\n
>echo $name
hi

>

I cant seem to get it working my code is set up like this:

read ans

if [ $ans = X ]

then

echo "Thanks For Using Logit, Goodbye" $fname $lname

exit 1

else

echo "Wrong Commannd Entered"

logit

fi