String to bool conversion from localstorage