Text this: Modelling and optimization of residential electricity load under stochastic demand