Changed substr() to replace()