cssName algorithm is clearer, allows for digits