reverting changes to string manipulation