expression bugs fixed for string variables