Added capitalisation function to correct "off" and "on" as commands