Adding default length to gen_string