used StirngBuffer instead of String
Missed a print
More modifications