Add prefix function and tests, from Puppetlabs stdlib