str.length check not required.