the (0...text.length).last thing really is... YIKES. Good catch!