packer: Use strings operations, faster than regexp and easy

/cc @sit