Checking if the value is string before calling replace on it
Authored by: prudhvireddy 2012-09-14
Parent: [r6350]
Child: [r6352]