Db2 Sql Function Trim Sql Statement With If Condition