Wrap input.arguments with String() before calling .trim(), matching the defensive pattern already used in the pi-extension (index.js:90). Prevents TypeError if the host passes a non-string truthy value. Fixes #553. Co-authored-by: Emeriko <dietrich.gebert@gmail.com>