Fix inefficient chars and weight method