Add support for prefixes on the trigger

Using a prefix ensures the final id length.
A draperized id may contain zeros at the left side an thus when it's typecasted the specified length is not met.