strip newline fromhash