Postgres Check If String Has Substring Java