You aren;t really removing the spaces. Use dbms_output to show exactly what is in v_string.