fix squeeze/strip periods issue