java check if string contains multiple substrings