Strip file extension when determining name