strip newlines from hash value in file