Replace confusing * replacement code

This function does the same thing, but is cleaner and much faster.

Signed-off-by: Nick Semenkovich <semenko@alum.mit.edu>
Replace a now empty concat w/ clone

Signed-off-by: Nick Semenkovich <semenko@alum.mit.edu>