def pre_process(pLine)
      pLine, hash_of_strings = replace_strings_and_params(pLine)
      pLine = replace_commas_inside_brackets_and_braces(pLine)
      pLine = replace_equals(pLine)
      return nil, nil unless pLine # Case of ==, stop immediately
      pLine = break_string_line(pLine)

      return pLine, hash_of_strings
    end
def pre_process(pLine)
      pLine, hash_of_strings = replace_strings_and_params(pLine)
      pLine = replace_commas_inside_brackets_and_braces(pLine)
      pLine = replace_equals(pLine)
      return nil, nil unless pLine # Case of ==, stop immediately
      pLine = break_string_line(pLine)

      return pLine, hash_of_strings
    end
Before detect string it is required to pre-process it to avoid any
 mistake during the parse operations. Follows the required steps:

 * Replaces strings and methods parameters by a token to be used later
 * Replace commas inside brackets and braces to avoid wrong replacement
 * Replace equal by token
 * Verify if line still valid after the steps above
 * Create an Array of variables