Bug fix: convert from Qstring to standard string