Match filename to function name