"Legalism" is the correct spelling for the term you are referring to. It represents a strict adherence to laws or regulations. Alternatively, if you meant to refer to "liberalism" - a political ideology emphasizing individual rights and freedoms - that would be an appropriate suggestion for the misspelling "legalisim".