Removing duplicate delete method in annotated string class