use strip() function for \n stripping

Signed-off-by: SeongJae Park <sj38.park@gmail.com>