def removeUnderscores(source):
    """This function replaces the underscores in a string with spaces, and is
    used for formatting unit output."""
    result = ''
    for c in source:
        if c == '_':
            result += ' '
        else:
            result += c
    return result
