Replace spaces with '.rjust' function.