def replace_plus_minus(string):
    """Replace the + symbol to %2B for url.

    Parameters
    ----------
    string:
        A string

    Returns
    -------
    string:
        A reformatted string.
    """
    return str(string).replace('-', '%2D').replace('+', '%2B')