added str len homogenization