Changed the way we parse strings (check this example in the moodle:
http://moodle.tau.ac.il/mod/forum/discuss.php?d=5556).