made regex for terminal string correct (only one character for double quotes before)