Update pa6.cpp

fixed mistake in removePunctuation(str)