This is fine, I wasn't sure that it was related to string mode etc. For my own curiosity, how was the code failing when it broke?