corrected contain and endsWith had conjunction