import re


def custom_parser(string):
    """Custom parser for separating variable name from units
       Name = Non-greedy match until opening parenthesis +
              remainder after closing parenthesis
       Units = Greedy match inside parentheses
    """
    match = re.match(r'(?P<name>.*?)\((?P<units>.*)\)(?P<remainder>.*)', string)
    if match:
        return (match['name']+match['remainder'], match['units'])
    else:
        return string, ''