Driver program
var str = " " ; document . write ( " " ) ; str = toggleCase ( str . split ( ' ' ) ) ; document . write ( str ) ; document . write ( " " ) ; str = toggleCase ( str . split ( ' ' ) ) ; document . write ( str ) ;