Updating getLineCountLike method to trim line value before comparison