Fix fromTo upercase / lowercase bug