Strip file and line from being passed if not needed