replace attribute prefix with replace function