Expose a function to parse strings of pub