ahb utilties: operations on strings