# Check Rotated String

{% tabs %}
{% tab title="Scala" %}

```scala
def isRotation(s1: String, s2: String):Boolean = {
  if (s1.length != s2.length) false
  else s1.concat(s1) contains s2
}

isRotation("waterbottle", "erbottlewat")
```

{% endtab %}

{% tab title="Second Tab" %}

{% endtab %}
{% endtabs %}
