Convert runlevel entry into integer before comparing