line to hash