Error for enemy = hero:findNearestEnemy(), The kithard dungeons, The gauntlet A

Hello, When I try to use the command enemy = hero:findNearestEnemy() in The Gauntlet A, Kithard Dungeons it says "There is no enemy. Use enemy = hero:findNearestEnemy() first. But I have am I doing something wrong or is the programming wrong since I am using lua.

Hello

I’m seeing a whitespace on the 3rd line. Try to remove it.

Hope this helps!

Where is the white space?

Line 3 should be:

enemy  = hero:findNearestEnemy()

You have:

e nemy = hero:findNearestEnemy()

A space is a character. A space where one should not be is considered unwanted whitespace.

Thank you for helping me