things about substr, getrange