Prefix option can accept string or function