Changed str to string