ruby 1.8.2 (2004-11-03) [powerpc-darwin7.5.0]
tripus% irb
irb(main):001:0> "test".rjust(5,"x")
=> " test"
irb(main):002:0> "test".ljust(5, "x")
=> "test "