string to byte method added