mimic .invoke when string is passed as second param