modifying functions to stop compiler warnings

fixing power control string functions