I don't understand... How is your code working? And how did no one point this out?
There is no such function in WoW called GetCharacterLevel. It's just
UnitLevel.
/edit: and "Player" =/= "player"
/edit2: both of these errors would have been pointed out to you if you have Lua errors enabled in your Interface Options.