update the method of analysing answer string