Fixes #5281 Trim parameter before exploding