From UI, you can send an arbitrary string to an Item as command.
What happens to it then depends on what bindings or rules it is linked with.
If you are looking to have your string embed details from other Items or calculations etc., it’s almost certainly better to process that in a rule rather than trying to build complex strings in the UI widget.