Removed unused string replace and regex methods