#2791 - Fixed text manipulation that was returning nil