Fix not accounting for the possible '\n' when setting