Added support for # hex, fixed db string bug