String functions in report filter

String functions in report filter

It works fine to use an int function if the filter criteria is based on an integer field, like this example where ID is integer:
 

When trying the same with a string field, this happens:



The problem seems to be the added "" and the function becomes a string! How can I get around this?