Add function to correct existing material text