lowercase and sanitize so that check works correctly