Capitalize handler
Add platform dependent code