Handling empty replaceparam