Fixed alignment problem in java Append