I need int values for bitwise operator ^, but I agree it's better to not convert the whole string before loop. Thanks!