Hy Xavier, concerning your patch, $str can be defined as empty above the switch(), so it works for all cases. On the other hand: is this line required at all? Funcionality isn't concerned by this line, so I give the patch my +1 Best Regards, David