Corrected code for Hyphen to Comma replacement