Nicolas,
Thank you, once again for the time you have put into working on this. I am sure there will be many others who will be able to use this plugin if they do any custom work.
This version of the plugin does indeed work without throwing any errors. Unfortunately, I still can't use the it because it counts not only the characters typed in the custom field, it also counts blank spaces. Since the intent is to calculate the correct price for the custom lettering engraved on the product, the plugin would charge the customer for each blank space as well. Example,if the client's requested inscription is ALL MY LOVE , the plugin inputs a quantity of 11 instead of the correct quantity of 9.