Allow base and destBase to be function returning a string