def get_max_len(in_string, max_len):
    """Gets current length of string and returns it if it exceeds the provided
    max_len. Otherwise, returns the provided max_len.
    """
    curr_len = len(in_string)
    if curr_len > max_len:
        return curr_len
    return max_len