Added WithOptions function to Name and Path

Added WithOptions function to Name and Path to allow optional lower and uppercasing and being compatible with old function.