trim(t, x) - JPA CriteriaBuilder's method

Create expression to trim character from both ends of a string.
Parameters:
t - character to be trimmed
x - expression for string to trim
Returns:
trim expression
Since:
JPA 2.0