Wasnt replacing quotes properly