Added trimPrefix Utility function so actions and strip off the web subdirectory  prefix if needed.