This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
One strategy you might consider would be use a loop to prefix your output with the appropriate number of space characters. Take a look at http://www.asciitable.com to find which character is the space character (hint: it's number 32).