Extract function for applying String editing to an Entry