def FixValence(El):
    """Returns the element symbol, even when a valence is present"""
    if '+' in El[-1]:
        num = El[-2]
        El = El.split(num)[0] + '+' + num
    if '+0' in El:
        El = El.split('+0')[0]
    if '-' in El[-1]:
        num = El[-2]
        El = El.split(num)[0] + '-' + num
    if '-0' in El:
        El = El.split('-0')[0]
    return El
