hopefully cleaned up method for cleaning strings