When I tried to split a string based on the space as a delimiter, and then apply the contains method on it like below

```
"no EJAVA here".contains("JAVA")
res0: Boolean = true

```

For that string when I tried using string\_var.contains("JAVA") then it returns true, but when I tried it using 

```
"no EJAVA here".split(" ").contains("JAVA")
res1: Boolean = false

```

then it returns false, is the Array[String] searches the complete elements of the array or matches substrings insides the individual elements?