Best way to globally trim incoming strings

What’s the best way to trim all incoming strings? For example, when firing create or update mutations to remove trailing or leading whitespace?

Hey Alex! I believe this is would be a great use for prisma extensions. This write up also helped me better understand how to use them.