Command to add 1000 spaces to end of line

hi,
could anyone tell me the command to append spaces at the end of the line.
for example, i need 1000 spaces after the word "helloworld"

echo "helloworld " i need to achieve this in someother way hardcoding 1000 spaces is not practical.

as i am totally new to the scripting and this is kinda urgent to solve seeking ur help.thanks

kavitha

perl -e 'while (<>) { chomp; $app = " " x 1000; s/$/$app/; print "$_\n" }' filename

the string "Helloworld" in the filename

#!/bin/ksh
typeset -L1000 mOneK
IFS='|'
mOneK=''
echo 'HelloWorld<'${mOneK}'>'

one more

echo "helloworld" | awk '{ print $0; for(i=1; i<=1000; i++) { printf "%s", " " } }'