Fixes ignoring of str function in certain cases