Fixed a output bug

Forgot to concatenate the rightString when generating the output