Distpatch text functions

I was faced with the problem of outputting variables using a text function. 

for example, the message should display the value of two variables 

Left(%NameOfSelectedFile%, 14) - %NameOfLoggedInUser%

but after using the text function [Left] the second variable is not output

SolidworksSolidworks Pdm/enterprise Pdm