Replaced string chars and connected to DB