fixed capitalize method