Oh, I apologize for duplicating the topic, I thought it was deleted due to the inconsistency of the example from the rules.
So, substr function returns srting data, why it's not possible to check equality of any string data with output of this substr function?
Or function returns other data type?