Better magma_valueparser.php for " and performance

Replaced preg_replace with str_replace for performance reasons.