Check whether if a string is a rotation of another string?

Given a string s1 and a string s2, write a snippet to say whether s2 is a rotation of s1

Example:

Valid example is two strings S1 = “HELLO”, and S2 = “LOHEL”.

The coding example can be simplified by the code snippet in a nutshell like so.

Pseudo Code:-

checkRotation(s1,s2)
    if s1.length != s2.length
        return False
    else
        temp = s1 + s1
        if s2 in temp
            return True
        else
            return False