lowercase string  before comparing magic methods