Fix implode when passed a string rather than a function