fixed regex for getting remote size and if string1==string2