Fix issue with last rails 2.3

Fix issue with partial string replacement that is not allowed in last rails 2.3