Fix parsing hex strings with new line, space or dash