Changed byte array string functions to be more standard.